/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-21 20:26:27
 ************************************************************************/

#include "Builder.h"

#include <iostream>
using namespace std;

void test0(){
    Builder * pBuilder1 = new ConcreateBuilder1;
    Director * pDirector1 = new Director(pBuilder1);
    pDirector1->Construct();

    Builder * pBuilder2 = new ConcreateBuilder2();
    Director * pDirector2 = new Director(pBuilder2);
    pDirector2->Construct();

    delete pDirector1;
    delete pDirector2;
}
 
int main(int argc,char *argv[])
{
    test0();
    return 0;
}
